﻿@model ShiXuLong.Model.ShopModel
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddInfo</title>
    <link href="~/scripts/css/layui.css" rel="stylesheet" />
    <script src="~/scripts/jquery-3.5.1.js"></script>
    <script src="~/scripts/layui.js"></script>
</head>
<body>
    <div>
        <div>
            @using (Ajax.BeginForm("AddInfo", "Recommend", new AjaxOptions { OnSuccess = "addComp" }))
            {
                <div class="layui-form-item">
                    @Html.LabelFor(m => m.Id)
                    @Html.TextBoxFor(m => m.Id)
                    @Html.ValidationMessageFor(m => m.Id)
                </div>
                <div class="layui-form-item">
                    @Html.LabelFor(m => m.ShopId)
                    @Html.TextBoxFor(m => m.ShopId)
                    @Html.ValidationMessageFor(m => m.ShopId)
                </div>
                <div class="layui-form-item">
                    @Html.LabelFor(m => m.ShopName)
                    @Html.TextBoxFor(m => m.ShopName)
                    @Html.ValidationMessageFor(m => m.ShopName)
                </div>
                <div class="layui-form-item">
                    @Html.LabelFor(m => m.ProductProfile)
                    @Html.TextBoxFor(m => m.ProductProfile)
                    @Html.ValidationMessageFor(m => m.ProductProfile)
                </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.ShopTypeId)
                        @Html.TextBoxFor(m => m.ShopTypeId)
                        @Html.ValidationMessageFor(m => m.ShopTypeId)
                    </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.RecommendId)
                        @Html.TextBoxFor(m => m.RecommendId)
                        @Html.ValidationMessageFor(m => m.RecommendId)
                    </div>

                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.Display)
                        @Html.TextBoxFor(m => m.Display)
                        @Html.ValidationMessageFor(m => m.Display)
                    </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.Shopimage)
                        @Html.TextBoxFor(m => m.Shopimage)
                        @Html.ValidationMessageFor(m => m.Shopimage)
                    </div>

                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.Price)
                        @Html.TextBoxFor(m => m.Price)
                        @Html.ValidationMessageFor(m => m.Price)
                    </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.Number)
                        @Html.TextBoxFor(m => m.Number)
                        @Html.ValidationMessageFor(m => m.Number)
                    </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.GuideId)
                        @Html.TextBoxFor(m => m.GuideId)
                        @Html.ValidationMessageFor(m => m.GuideId)
                    </div>
                    <div class="layui-form-item">
                        @Html.LabelFor(m => m.Status)
                        @Html.TextBoxFor(m => m.Status)
                        @Html.ValidationMessageFor(m => m.Status)
                    </div>
                    <div>
                        <button>提交</button>
                    </div>
            }
            <script src="~/scripts/jquery-3.5.1.js"></script>
            <script src="~/lib/layui/layui.js"></script>
            <script>

                layui.use(['form','layer'], function () {
                    var layer = layui.layer;
                    function addComp(re) {
                        if (re.success) {
                            layer.msg(re.msg)
                        } else {
                            layer.msg(re.msg)
                        }
                    }

                })

            </script>
        </div>
    </div>
</body>
</html>
